package eu.best.sercheng.model.entity;

import java.io.Serializable;

import javax.persistence.EmbeddedId;
import javax.persistence.Entity;

@Entity
public class RelationKeyPage implements Serializable {

	private static final long serialVersionUID = -8619810435696873427L;

	public RelationKeyPage() {

	}
	
	public RelationKeyPage(RelationKeyPagePK pk) {
		super();
		this.pk = pk;
	}

	@EmbeddedId
	private RelationKeyPagePK pk;

	private int occurence = 1;
	
	public int getOccurence() {
		return occurence;
	}

	public void setOccurence(int occurence) {
		this.occurence = occurence;
	}

	public RelationKeyPagePK getPk() {
		return pk;
	}

	public void setPk(RelationKeyPagePK pk) {
		this.pk = pk;
	}

	@Override
	public String toString() {
		return "RelationKeyPage [pk=" + pk + "]";
	}
}
